<?php
/**
 * 优惠券列表模型
 * User: Administrator
 * Date: 2018/9/27
 * Time: 17:09
 */

namespace app\admin\model;
use think\Model;
class Coupons  extends Model
{
    protected $createTime = 'add_time';
    protected $autoWriteTimestamp = true;
    protected $updateTime = false;

    public function setStartTimeAttr($data)
    {
        return strtotime($data);
    }
    public function setSettlementTimeAttr($data)
    {
        return strtotime($data);
    }
}